public class Test {
    public static void main(String[] args) {
        System.out.println("byte 类型在内存中占 " + Byte.BYTES + " 字节");
        System.out.println("short 类型在内存中占 " + Short.BYTES + " 字节");
        System.out.println("int 类型在内存中占 " + Integer.BYTES + " 字节");
        System.out.println("long 类型在内存中占 " + Long.BYTES + " 字节");
    }
}

